package com.blockmeta.bbs.minemodule.pojo;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * @author AirThor
 * @date 2018/10/23.
 * 金币商城
 */
public class GoldShopPOJO {

    /**
     * gold : 888
     * gamble : [{"select":0,"symbol":"BTC","icon_url":"https://s2.coinmarketcap.com/static/img/coins/32x32/1.png","start":"18:00","end":"24:00","cost":20,"happy_time":"24:00","award":40},{"select":1,"symbol":"BTM","icon_url":"https://s2.coinmarketcap.com/static/img/coins/32x32/1866.png","start":"18:00","end":"24:00","cost":20,"happy_time":"24:00","award":40},{"select":0,"symbol":"ETH","icon_url":"https://s2.coinmarketcap.com/static/img/coins/32x32/1027.png","start":"18:00","end":"24:00","cost":20,"happy_time":"24:00","award":40}]
     * scratch : {"is_first":true,"list":[{"username":"老船长","award":21},{"username":"小船长","award":12}],"cost":10}
     * conversion : [{"icon_url":"https://s2.coinmarketcap.com/static/img/coins/32x32/1866.png","name":"比原链专属订制T恤","price":1400,"link":"http://www.baidu.com"},{"icon_url":"https://s2.coinmarketcap.com/static/img/coins/32x32/1866.png","name":"比原链专属订制T恤","price":1400,"link":"http://www.baidu.com"},{"icon_url":"https://s2.coinmarketcap.com/static/img/coins/32x32/1866.png","name":"比原链专属订制T恤","price":1400,"link":"http://www.baidu.com"},{"icon_url":"https://s2.coinmarketcap.com/static/img/coins/32x32/1866.png","name":"比原链专属订制T恤","price":1400,"link":"http://www.baidu.com"}]
     */

    @SerializedName("gold")
    public int gold;
    @SerializedName("scratch")
    public ScratchBean scratch;
    @SerializedName("gamble")
    public List<GambleBean> gamble;
    @SerializedName("conversion")
    public List<ConversionBean> conversion;

    public static class ScratchBean {
        /**
         * is_first : true
         * list : [{"username":"老船长","award":21},{"username":"小船长","award":12}]
         * cost : 10
         */

        @SerializedName("is_first")
        public boolean isFirst;
        @SerializedName("cost")
        public int cost;
        @SerializedName("list")
        public List<ListBean> list;

        public static class ListBean {
            /**
             * username : 老船长
             * award : 21
             */

            @SerializedName("username")
            public String username;
            @SerializedName("award")
            public int award;
        }
    }

    public static class GambleBean {
        /**
         * select : 0
         * symbol : BTC
         * icon_url : https://s2.coinmarketcap.com/static/img/coins/32x32/1.png
         * start : 18:00
         * end : 24:00
         * cost : 20
         * happy_time : 24:00
         * award : 40
         * up : 1
         * down : 2
         */

        @SerializedName("select")
        public int select;
        @SerializedName("symbol")
        public String symbol;
        @SerializedName("icon_url")
        public String iconUrl;
        @SerializedName("start")
        public String start;
        @SerializedName("end")
        public String end;
        @SerializedName("cost")
        public int cost;
        @SerializedName("happy_time")
        public String happyTime;
        @SerializedName("award")
        public int award;
        @SerializedName("up")
        public double up;
        @SerializedName("down")
        public double down;
    }

    public static class ConversionBean {
        /**
         * icon_url : https://s2.coinmarketcap.com/static/img/coins/32x32/1866.png
         * name : 比原链专属订制T恤
         * price : 1400
         * link : http://www.baidu.com
         */

        @SerializedName("pic_url")
        public String iconUrl;
        @SerializedName("name")
        public String name;
        @SerializedName("price")
        public int price;
        @SerializedName("link")
        public String link;
        @SerializedName("goods_id")
        public String goodsId;
    }
}
